package com.dom.domweb.modular.service;

import com.dom.common.model.standard.ResponseModel;
import com.dom.common.model.vo.sale.*;
import com.dom.domweb.common.RspModel;
import com.dom.domweb.consumer.MarketBackConsumer;
import com.dom.domweb.consumer.MarketSaleConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MarketBackService {

    @Autowired
    private MarketBackConsumer marketBackConsumer;

    public String insertMarketBack(M050R request) {
        return marketBackConsumer.insertMarketBack(request);
    }

    public M059A getMarketBackList(M059R request) {
        return marketBackConsumer.getMarketBackList(request);
    }

    public M053A findUpdateMarketBack(String id) {
        return marketBackConsumer.findUpdateMarketBack(id);
    }

    public boolean marketBackDel(String id) {
        return marketBackConsumer.marketBackDel(id);
    }

    public RspModel marketBackModify(M052R request) {
        ResponseModel rspModel = marketBackConsumer.marketBackModify(request);
        RspModel model = new RspModel(rspModel.getRspCode(),rspModel.getRspMsg());
        return model;
    }
}
